package com.czh.rdm.chat_3

fun main() {
    println(topSum(1, 2))
    println(topField)
    val s = "hello"
    s.fuck()
    println(s.lastChar)
    unZipArg(arrayOf("hello", "world"))
}

fun String.fuck() {
    println(this.length)
}

val String.lastChar: Char
    get()  = get(length - 1)

fun unZipArg(args: Array<String>) {
    val list = listOf< String>("args: ", *args)
    println(list)
}
